package com.szu.udp.socket;

import java.io.File;

import com.szu.file.util.Constant;

public class BoadcastDatagram
{
	public String address="0.0.0.0";
	public String nickName="";
	
	public BoadcastDatagram(String address,String nickName)
	{
		this.address=address;
		this.nickName=nickName;
	}
	
	public byte[] getBytes()
	{
		return (address+Constant.SEPARATOR+nickName).getBytes();
	}
	
	public String toString()
	{
		return address+File.separator+nickName;
	}
}
